#ifndef CFG_VIEW_HPP
#define CFG_VIEW_HPP

#include "data/cfg_items.hpp"
#include "imgui/imgui.h"

namespace ImGui {
    /**
     * @brief 渲染设置项
     * 
     * @param cfg 要渲染的设置项
     * @param as_popup 是否是作为对话框内容渲染
     */
    void RenderConfigView(CfgItemBase *cfg, ImVec2 area = ImVec2{-1.f, -1.f}, bool as_popup = true);
}

#endif /* CFG_VIEW_HPP */
